<html>
    <head>
        <#include "/${system}/component/html-head.ftl" />
    </head>
    <body>
        <#include "/${system}/component/head.ftl" />
        <div class="admin">
            <div class="aleft" id="left-container"></div>
            <div class="aright">
                <div class="arz cl">
                    <a href="javascript:;"><i class="layui-icon">&#xe608;</i>评论管理</a>
                </div>
                <form method="post" class="aform cl">
                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">未审核</li>
                            <li>已审核</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div id="container1" class="layui-tab-item layui-show"></div>
                            <div id="container2" class="layui-tab-item">内容2</div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script>
            layui.config({base:'${base}/${system}/js/'}).use('comment');
        </script>
        <script id="template1" type="text/template">
            <table width="100%">
                <tr>
                    <th width="10%" align="center">昵称</th>
                    <th width="10%" align="center">邮箱</th>
                    <th width="30%" align="center">内容</th>
                    <th width="20%" align="center">时间</th>
                    <th width="10%" align="center">基本操作</th>
                </tr>
                {{#  layui.each(d.list, function(index, item) { }}
                    <tr>
                        <td align="center">{{item.name}}</td>
                        <td align="center">{{item.email}}</td>
                        <td align="center">{{item.content}}</td>
                        <td align="center">{{Format(item.createDate,"yyyy-MM-dd hh:mm:ss")}}</td>
                        <td align="center">
                            <a href="comment-reply.html?id={{item.id}}">回复</a> |<a href="comment-check.html?id={{item.id}}">审核</a>
                        </td>
                    </tr>
                {{# }); }}
            </table>
            <div id="pager1" class="qing-text-center"></div>
        </script>
        <script id="template2" type="text/template">
            <table width="100%">
                <tr>
                    <th width="10%" align="center">昵称</th>
                    <th width="10%" align="center">邮箱</th>
                    <th width="40%" align="center">内容</th>
                    <th width="10%" align="center">时间</th>
                    <th width="10%" align="center">基本操作</th>
                </tr>
                {{#  layui.each(d.list, function(index, item) { }}
                    <tr>
                        <td align="center">{{item.nickname}}</td>
                        <td align="center">{{item.email}}</td>
                        <td align="center">{{item.content}}</td>
                        <td align="center">{{item.cdate}}</td>
                        <td align="center">
                            <a href="/blog/back/comment-reply?id={{item.id}}">回复</a> |<a href="comment-check.html?id={{item.id}}">审核</a>
                        </td>
                    </tr>
                {{# }); }}
            </table>
            <div id="pager2" class="qing-text-center"></div>
        </script>
    </body>
</html>